/**
 * Created by DELL on 2017/4/17.
 */
const rdmArr =require('./randomArr.js');
const time =require('./countTime.js');
const LEN=10;
const RANGE=100;
module.exports=function test(arr1){
    //fn为算法
    //arr长度为80  范围是0-100
    const arr=rdmArr(LEN,RANGE);
    console.log('测试数组长度: ',LEN,' 范围:0 -',RANGE,'数组:');
    //测试传入的排序算法性能
    for(let i=0;i<arr1.length;i++){
        if(typeof arr1[i]==='function'){
            time(arr1[i](arr));
        }
    }
};